package myschool.object.student;

public class Point {
    private int x;
    private int y;
    private int z;
    public  Point(int x,int y,int z){
        this.x = x;
        this.y = y;
        this.z = z;
    }
    public String distance(){
        return "距原点的距离："+Math.sqrt(z*z+Math.sqrt(x*x+y*y)*Math.sqrt(x*x+y*y));
    }

}
